package com.bgs.service;

import com.bgs.common.R;
import com.bgs.pojo.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bgs.pojo.Picture;
import com.bgs.pojo.vo.OrderDetailTow;
import com.bgs.pojo.vo.FourOrderDetail;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 * 商品详情表 服务类
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface OrderDetailService extends IService<OrderDetail> {

    R zeroOrderDetailState4(Integer orderDetailId);
    //后台商品审核查看
    List<OrderDetail> TowGettableDataShang(String orderDetailName,Integer storeId);
    //后台商品审核通过
    int TowShangShen(Integer orderDetailId);
    //后台商品审核不通过
    int TowShangShenNo(Integer orderDetailId);
    //查询购物车商品
    List<OrderDetail> TowOrderDetail(Integer storeId);
    //圈子远程调用
    List<OrderDetailTow> TowgetOrderDetail(Integer orderDetailId);
    //远程调用查询商品图片
    List<Picture> TowGetPictures(Integer orderDetailId);


    List<OrderDetail> zeroOrderDetailIdToOrderDetail(Integer orderDetailId);
    //服务远程调用查看所有商品
    List<OrderDetail> TowOrderList(Integer storeId);

    //



    R fourOpenShop(Integer id, Integer shangpinid);
    //上架商品
    R fourAddWupin(FourOrderDetail fourOrderDetail);

    //查询物品详情
    R fourQueryDetail(int id);

    //查询所有商品视频
    R fourIndexShow();

    R ThreeSelectDetail(List<OrderDetail> list);
}
